using System;
using System.Collections.Generic;
using System.Text;
using CMS.Core.Domain;

namespace CMS.Presenters.Views.Lookups
{
    public interface ILookupView
    {
        IList<LinhVuc> LinhVucs { get; set; }
        IList<LoaiDon> LoaiDons { get; set; }
        string Message { set; }

        bool IsRole { set; get;}

        /// <summary>
        /// Event raised when the view is initialized. 
        /// </summary>
        event EventHandler Init;

        /// <summary>
        /// Event raised when the view is loaded. 
        /// This is a good place to load the view's 
        /// initial state from the model.
        /// </summary>
        event EventHandler Load;
        /// <summary>
        /// Determines whether or not the current 
        /// request is a postback.
        /// </summary>
        bool IsPostBack { get; }

        /// <summary>
        /// Indicates to the view that it should refresh itself 
        /// via data binding.
        /// </summary>
        void DataBind();


        /// <summary>
        /// Returns true if the view form input values 
        /// are valid.  Note that the presenter may 
        /// also choose to validate the values. This 
        /// is merely for first pass validation.
        /// </summary>
        bool IsValid { get;}
    }
}
